package entity

import javax.persistence.*


//@Entity(name="Auth_Role")
//@Entity(name = "auth_role")
public class Role {
//    @Id
    var id: Int? = null

//    @Enumerated(EnumType.STRING)
    var name = RoleType.ROLE_DEFAULT.toString()

//    @JsonIgnore
//    @OneToMany
    var myUdr: Set<Udr>? = HashSet()

    enum class RoleType {
        ROLE_DEFAULT, ROLE_ADMIN
    }

    object RoleLevel {
        const val DEFAULT_LEVEL = 0
        const val ADMIN_LEVEL = 1

    }
}